package by.grsu.hdm.media;

import by.grsu.hdm.devices.MediaCenter;
import by.grsu.hdm.exception.EmptyPlayListException;

public class RemoteControl {
	private MediaCenter device ;

	public MediaCenter getDevice() {
		return device;
	}

	public void setDevice(MediaCenter device) {
		this.device = device;
	}
	
	public void play() throws EmptyPlayListException
	{
		if(device != null)
			device.getMediaPlayer().play();
	}
	
	public void stop()
	{
		if(device != null)
			device.getMediaPlayer().stop();
	}
	
	public void pause()
	{
		if(device != null)
			device.getMediaPlayer().pause();
	}
}
